xen/x86: add a function for modifying cr3
authorJuergen Gross <jgross@suse.com>
Thu, 26 Apr 2018 11:33:11 +0000 (13:33 +0200)
committerWei Liu <wei.liu2@citrix.com>
Fri, 4 May 2018 14:52:03 +0000 (15:52 +0100)
commitcda05dcae6732fc9c5b782a97a09b5a0f0dd4b81
tree9f70316eb8f367e41a598a04c054341b6b894dfe
parent18173843a573a2691121d34780a011ce1dd5138c
xen/x86: add a function for modifying cr3

Instead of having multiple places with more or less identical asm
statements just have one function doing a write to cr3.

As this function should be named write_cr3() rename the current
write_cr3() function to switch_cr3().

Suggested-by: Andrew Copper <andrew.cooper3@citrix.com>
Signed-off-by: Juergen Gross <jgross@suse.com>
Reviewed-by: Jan Beulich <jbeulich@suse.com>
xen/arch/x86/flushtlb.c
xen/arch/x86/mm.c
xen/arch/x86/pv/domain.c
xen/common/efi/runtime.c
xen/include/asm-x86/flushtlb.h
xen/include/asm-x86/processor.h